Engine deps on @bevyl-ai/agent-tools (kit rotation + gateway config)#42
Merged
Conversation
The engine is bundled by Bun.build at install time, so the kit dep is inlined into the single deployed file — the dependency-free VM artifact survives (verified: bundle has zero external imports). Changes: - review-sweep: drop the inline rotateGateway; rotation moves into reviewPr's limit branch where the REAL failure text is in scope, via the kit's maybeRotateGateway (pool/cooldown from config.env via new opts). The kit's signature match is tighter than isRateLimited by design: a transient 429 still ends the sweep but no longer walks the ring. - cli: adopt the kit's writeCodexGatewayConfig (trustDir opt); exe-cli drops its copy. - rotation mechanics tests move to the kit with the code. bun.lock refresh pending the 0.2.0 npm publish.
failureReason() picks one signal line and truncates to 220 chars for the log; feeding that to the kit's stricter isQuotaWall could silently skip a real rotation. Carry the raw output on the limit result and match on that. (Reviewer catch on #42.)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
stupify now consumes
@bevyl-ai/agent-toolsdirectly instead of carrying an inline copy of the rotation mechanism. The engine stays a single dependency-free VM artifact becauseinstallSweepEnginebundles viaBun.build— the kit inlines at install time (verified: the built bundle has zero external imports).reviewPr's limit branch where the real codex failure text is in scope, using the kit'smaybeRotateGatewaywith pool/cooldown fed fromconfig.env(newpool/cooldownMsopts in 0.2.0). Behavior tightening, deliberate: the kit's quota-wall signature is stricter thanisRateLimited, so a transient 429 still ends the sweep early but no longer advances the gateway ring.writeCodexGatewayConfig(withtrustDir);@stupify/exe-clidrops its copy.Companions: bunion#73 (kit ssh helpers), earshot#4 (kit scrubSecrets).
bun.lockrefresh pending the0.2.0npm publish (OTP).